package com.tucanstubs.android_wheresmystuff.activities;

import com.tucanstubs.android_wheresmystuff.R;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;


/**
 * 
 * Launching point of the application. Called when the application starts up.
 * @author team 37
 * @version 2.0 4/9/2013
 *
 */
public class MainActivity extends Activity {
	

	/**
	 * Creates the activity and passes control over to LoginPageActivity.
	 * @param savedInstanceState not used
	 */
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Intent i = new Intent(this,LoginPageActivity.class);
		startActivity(i);
		finish();
	}

	/* (non-Javadoc)
	 * @see android.app.Activity#onCreateOptionsMenu(android.view.Menu)
	 */
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}
